*natural = MAX (*minimum, max_width);
}
- }
+ }
else
{
+ /* XXX Do something about width_chars/max_width_chars when no ellipsize/wrap is set */
*minimum = text_width;
*natural = *minimum;
}
(required_rect.width + label->misc.xpad * 2), minimum_size, natural_size);
else
{
- /* If there is no wrapping, the height is static */
+ /* If there is no wrapping, the height is either static or rotated and ellipsized */
*minimum_size = required_rect.height + label->misc.ypad * 2;
- *natural_size = *minimum_size;
+ *natural_size = natural_rect.height + label->misc.ypad * 2;
}
}
}